package com.youan.log.modules.system;

import org.springblade.common.cache.ParamCache;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system/blade")
public class BladeController {

    @GetMapping("/getSysParam")
    public R<String> getSysParam(String sysParamKey) {
        String result = ParamCache.getValue(sysParamKey);
        return R.data(result);
    }
}
